import { defineConfig } from '@umijs/max';
import { setting } from './layout';
import routes from './routes';

export default defineConfig({
  antd: {},
  access: {},
  model: {},
  initialState: {},
  request: {},
  // 布局静态配置 构建时
  layout: {
    locale: false,
    ...setting,
  },
  routes,
  headScripts: [
    // 解决首次加载时白屏的问题
    {
      src: './scripts/loading.js',
      async: true,
    },
  ],
  fastRefresh: true,
});
